.class Lcom/estrongs/android/ui/dialog/w$b;
.super Ljava/lang/Object;
.source "EditNameDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/ui/dialog/w;->c()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/dialog/w;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/dialog/w;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 2

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/w;->c(Lcom/estrongs/android/ui/dialog/w;)Landroid/widget/EditText;

    move-result-object p2

    invoke-virtual {p2}, Landroid/widget/EditText;->getEditableText()Landroid/text/Editable;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p2

    const-string v0, ""

    .line 2
    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/w;->d(Lcom/estrongs/android/ui/dialog/w;)Landroid/widget/CheckBox;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/CheckBox;->getVisibility()I

    move-result v0

    const/16 v1, 0x8

    if-eq v0, v1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/w;->e(Lcom/estrongs/android/ui/dialog/w;)Landroid/content/Context;

    move-result-object p1

    const p2, 0x7f110799

    const/4 v0, 0x0

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    goto :goto_0

    .line 4
    :cond_0
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/w;->f(Lcom/estrongs/android/ui/dialog/w;)Lcom/estrongs/android/ui/dialog/w$e;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/w;->a(Lcom/estrongs/android/ui/dialog/w;)Ljava/util/List;

    move-result-object p1

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/w;->a(Lcom/estrongs/android/ui/dialog/w;)Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    if-lez p1, :cond_1

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/w;->a(Lcom/estrongs/android/ui/dialog/w;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {v1}, Lcom/estrongs/android/ui/dialog/w;->b(Lcom/estrongs/android/ui/dialog/w;)I

    move-result v1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    invoke-static {p1, v0}, Lcom/estrongs/android/ui/dialog/w;->a(Lcom/estrongs/android/ui/dialog/w;Lcom/estrongs/fs/g;)Lcom/estrongs/fs/g;

    .line 8
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/w;->f(Lcom/estrongs/android/ui/dialog/w;)Lcom/estrongs/android/ui/dialog/w$e;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/w;->g(Lcom/estrongs/android/ui/dialog/w;)Lcom/estrongs/fs/g;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/w$b;->a:Lcom/estrongs/android/ui/dialog/w;

    invoke-static {v1}, Lcom/estrongs/android/ui/dialog/w;->d(Lcom/estrongs/android/ui/dialog/w;)Landroid/widget/CheckBox;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v1

    invoke-interface {p1, p2, v0, v1}, Lcom/estrongs/android/ui/dialog/w$e;->a(Ljava/lang/String;Lcom/estrongs/fs/g;Z)V

    :cond_2
    :goto_0
    return-void
.end method
